import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import cancel from '@/icons/cancel.vue';
import save from '@/icons/save.vue';
import edit from '@/icons/edit.vue';
import ok from '@/icons/ok.vue';
import add from '@/icons/add.vue';
import remove from '@/icons/remove.vue';
import send from '@/icons/send.vue';
import folder from '@/icons/folder.vue';
import upload from '@/icons/upload.vue';
import download from '@/icons/download.vue';
import reload from '@/icons/reload.vue';
import pc from '@/icons/pc.vue';
import mobile from '@/icons/mobile.vue';
import image from '@/icons/image.vue';
import detail from '@/icons/detail.vue';
import copy from '@/icons/copy.vue';
import branch from '@/icons/branch.vue';
import view from '@/icons/view.vue';
import down from '@/icons/down.vue';
import up from '@/icons/up.vue';
import attachment from '@/icons/attachment.vue';
import comment from '@/icons/comment.vue';
import stop from '@/icons/stop.vue';
import clear from '@/icons/clear.vue';
import user from '@/icons/user.vue';
import password from '@/icons/password.vue';
import more from '@/icons/more.vue';
import subtract from '@/icons/subtract.vue';
import notify from '@/icons/notify.vue';
import rollback from '@/icons/rollback.vue';
import transform from '@/icons/transform.vue';
import back from '@/icons/back.vue';
import history from '@/icons/history.vue';
import property from '@/icons/property.vue';
import relation from '@/icons/relation.vue';
import left from '@/icons/left.vue';
import right from '@/icons/right.vue';
import document from '@/icons/document.vue';


let iconRegister = {
  document,
  relation,
  right,
  left,
  cancel,
  back,
  history,
  property,
  edit,
  ok,
  add,
  remove,
  folder,
  send,
  upload,
  download,
  pc,
  mobile,
  image,
  reload,
  copy,
  more,
  stop,
  clear,
  user,
  password,
  attachment,
  comment,
  branch,
  detail,
  down,
  up,
  notify,
  subtract,
  rollback,
  view,
  transform,
  save
};

export default {
  install(app) {
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component);
    }

    for (let key in iconRegister) {
      app.component(key, iconRegister[key]);
    }
  },
  iconRegister
};
